<%@ Page Language="C#" MasterPageFile="~/Board.Master" AutoEventWireup="true" CodeBehind="ActiveUsers.aspx.cs" Inherits="UserInterface.ActiveUsers" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder" runat="server">
    <asp:Repeater runat="server" ID="ActiveUsersRepeater">
        <HeaderTemplate>
            <table class="list-table">
                <tr>
                    <th>Username</th>
                    <th>Location</th>
                    <th>Login</th>
                    <th>Last Active</th>
                    <th>Time Active</th>
                </tr>
        </HeaderTemplate>

        <ItemTemplate>
                <tr>
                    <td class="default-column"><%# Eval("User.Username") %></td>
                    <td class="default-column"><a href="<%# Eval("LocationUrl")%>">Location</a></td>
                    <td class="default-column"><%# Eval("LoginDateTime")%></td>
                    <td class="default-column"><%# Eval("LastActiveDateTime") %></td>
                    <td class="default-column"><%# Eval("ActiveTime", "{0:HH:mm:ss}")%></td>
                </tr>
        </ItemTemplate>

        <AlternatingItemTemplate>
                <tr>
                    <td class="alternate-column"><%# Eval("User.Username") %></td>
                    <td class="alternate-column"><a href="<%# Eval("LocationUrl")%>">Location</a></td>
                    <td class="alternate-column"><%# Eval("LoginDateTime")%></td>
                    <td class="alternate-column"><%# Eval("LastActiveDateTime") %></td>
                    <td class="alternate-column"><%# Eval("ActiveTime", "{0:HH:mm:ss}")%></td>
                </tr>
        </AlternatingItemTemplate>

        <FooterTemplate>
            </table>
        </FooterTemplate>
    </asp:Repeater>
</asp:Content>
